package com.example.excel;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
@AllArgsConstructor
public class DrawShapeCell {

    private String text;

    private int shapeTypes;

    private DrawShapeColor color;
    /**
     * 图形左边界，与开始位置点的单元格偏移
     * 边界在起始点左：-
     * 边界在起始点右：+
     */
    private double dx1;
    /**
     * 图形上边界，与开始位置点的单元格偏移
     * 边界在起始点上：-
     * 边界在起始点下：+
     */
    private double dy1;
    /**
     * 图形右边界，与开始位置点的单元格偏移
     * 边界在起始点左：-
     * 边界在起始点右：+
     */
    private double dx2;
    /**
     * 图形下边界，与开始位置点的单元格偏移
     * 边界在起始点上：-
     * 边界在起始点下：+
     */
    private double dy2;

    // 开始位置点所在行
    private int row1;

    // 开始位置点所在列
    private int col1;

    // 结束位置点所在行
    private int row2;

    // 结束位置点所在列
    private int col2;

    public DrawShapeCell(String text, int shapeTypes, DrawShapeColor color, double dx1, double dy1, double dx2, double dy2, int row, int col) {
        this.text = text;
        this.shapeTypes = shapeTypes;
        this.color = color;

        this.dx1 = dx1;
        this.dy1 = dy1;
        this.dx2 = dx2;
        this.dy2 = dy2;

        this.row1 = row;
        this.row2 = row;
        this.col1 = col;
        this.col2 = col;
    }
}
